From: Giovanni Campagna Date: Mon, 6 Aug 2012 14:34:20 +0000 (+0200) Subject: NotificationDaemon: don't override the title for app notifications X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6224 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1e3796967e0b61a74c75c47ba066f25dbed0109a;p=gnome-shell.git NotificationDaemon: don't override the title for app notifications If a source is associated with an app, ignore the app name provided by libnotify, as that is often garbage. This fixes the "XChat-GNOME OSD" problem. https://bugzilla.gnome.org/show_bug.cgi?id=681143 --- diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index 8fdb9e022..0eee59b87 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -629,6 +629,16 @@ const Source = new Lang.Class({ } }, + setTitle: function(title) { + // Do nothing if .app is set, we don't want to override the + // app name with whatever is provided through libnotify (usually + // garbage) + if (this.app) + return; + + this.parent(title); + }, + open: function(notification) { this.destroyNonResidentNotifications(); this.openApp();